﻿@{
    ViewBag.Title = "Profile";
    Layout = "~/Views/Shared/_Mobile.cshtml";
}

<h1>Liste de courses</h1>


@if (ViewBag.Cart.productList.Count == 0)
{
    <p>Aucun produit dans la liste.</p>
}
else
{
    <table border="1" style="border-collapse: collapse;">
    <tr><th>Nom</th><th>Quantité</th><th>Magasin</th></tr>
    @foreach (Alma.Models.ProductDetailsModel se in ViewBag.Cart.productList)
    {
        <tr>
        <td>@se.Name</td>
        <td>@se.Quantity</td>
        <td>@Html.ActionLink(se.Name_Shop, "ShowShop", "Mobile", new { id = se.ID_Shop }, null)</td>
        </tr>
    }
    </table>
}

@if (ViewBag.Cart.publicLists.Count > 0)
{
<h2>Mes listes</h2>
 <table>

  @foreach (Alma.Models.ListModel se in ViewBag.Cart.publicLists)
  {
        <tr>
        <td>@Html.ActionLink(se.List_Name, "ShowList", "Mobile", new { id = se.ID }, null)</td>
        </tr>
  }
    </table>
}
